<?php

namespace vendor;

use vendor\core\student;

require "core/student.php";


//创建对象
$stu=new student("zhangsan",23,"男");

//调用对象方法
$stu->eat();

//使用静态属性
echo student::$type;
echo "<br>";

//调用静态方法
student::setType("保安");

//使用静态属性
echo student::$type;
echo "<br>";